-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement/148 | Expose hooks for "avatar updated" and "avatar deleted" #149
Conversation
I have not written a test scenario for this, but its totally understandable if that is a prerequisite for considering this PR, just let me know. Thanks for your work on this plugin, excited to be able to pull the upstream back into my project if the team agrees this functionality is worth including in Simple Local Avatars. |
Also, I wasn't sure where to add documentation, apologies if that was something obvious I missed. Happy to add if someone can point me in the right direction. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few PHPCS issues.
fixing a PHPCS issue
fixing a PHPCS issue
@dkotter Code LGTM, any feedback from your end? |
Inline documentation added. Note: I added Thanks! cc @faisal-alvi |
Description of the Change
Exposes two hooks,
simple_local_avatar_updated
andsimple_local_avatar_deleted
. These hooks allow theme developers or other plugin developers to react to changes in local avatars in a consistent and precise way.Example use cases include:
Closes #148
Changelog Entry
Credits
@t-lock
Checklist: